<?php
/* @var $this StatesController */
/* @var $model States */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'states-form',
	'enableAjaxValidation'=>false,
)); ?>


    <table width="100%" cellspacing="1" cellpadding="4" border="0">
        <tbody>
        <tr class="td_title">
            <td colspan="2"> <p class="note">Fields with <span class="required">*</span> are required.</p> </td></tr>
        <tr bgcolor="#FFFFFF">
            <td width="15%" class="td_th"><?php echo $form->labelEx($model,'state_code'); ?></td>
            <td><?php echo $form->textField($model,'state_code',array('size'=>60,'maxlength'=>100)); ?>
                <?php echo $form->error($model,'state_code'); ?>
            </td>

        </tr>
        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'state_name'); ?></td>
            <td>
                <?php echo $form->textField($model,'state_name',array('size'=>60,'maxlength'=>100)); ?>
                <span> <?php echo $form->error($model,'state_name'); ?> </span>
            </td>

        </tr>

        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'is_active'); ?></td>
            <td>
                <?php echo $form->checkBox($model,'is_active'); ?>
                <?php echo $form->error($model,'is_active'); ?>
            </td>

        </tr>

        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'active_lender'); ?></td>
            <td>
                <?php echo $form->checkBox($model,'active_lender'); ?>
                <?php echo $form->error($model,'active_lender'); ?>
            </td>

        </tr>

        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'active_borrower'); ?></td>
            <td>
                <?php echo $form->checkBox($model,'active_borrower'); ?>
                <?php echo $form->error($model,'active_borrower'); ?>
            </td>

        </tr>

        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'active_broker'); ?></td>
            <td>
                <?php echo $form->checkBox($model,'active_broker'); ?>
                <?php echo $form->error($model,'active_broker'); ?>
            </td>

        </tr>


        <tr bgcolor="#FFFFFF">
            <td colspan="2" class="submit"><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?></td>
        </tr>
        </tbody>
    </table>
    <br>
<?php $this->endWidget(); ?>

</div><!-- form -->